home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utmisc1 / chktex.lha / chktex / Makefile.in < prev    next >
Makefile  |  1996-04-30  |  4KB  |  184 lines

  1. #
  2. #  Makefile for ChkTeX project, creates the stuff.
  3. #  Copyright (C) 1996 Jens T. Berger Thielemann
  4. #
  5. #  This program is free software; you can redistribute it and/or modify
  6. #  it under the terms of the GNU General Public License as published by
  7. #  the Free Software Foundation; either version 2 of the License, or
  8. #  (at your option) any later version.
  9. #
  10. #  This program is distributed in the hope that it will be useful,
  11. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. #  GNU General Public License for more details.
  14. #
  15. #  You should have received a copy of the GNU General Public License
  16. #  along with this program; if not, write to the Free Software
  17. #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. #
  19. #  Contact the author at:
  20. #        Jens Berger
  21. #        Spektrumvn. 4
  22. #        N-0666 Oslo
  23. #        Norway
  24. #        E-mail: <jensthi@ifi.uio.no>
  25. #
  26. # @configure_input@
  27. #
  28.  
  29.  
  30. #
  31. # If your compiler barfs on the flags below, use this define instead
  32. #
  33. # compileflags=
  34. #
  35.  
  36. #####################################################################
  37.  
  38. compileflags= -ansi -W -Wall
  39.  
  40. prefix=@prefix@
  41. exec_prefix=@exec_prefix@
  42. bindir=@bindir@
  43. datadir=@datadir@
  44. INSTALL=@INSTALL@
  45.  
  46. USRDEFS=-DDATADIR=\"$(datadir)\"
  47.  
  48. OBJS= ChkTeX.o FindErrs.o getopt.o getopt1.o OpSys.o Resource.o Utility.o
  49.  
  50. REXXFILES= ChkTeX.ced ChkTeX.ged ChkTeX.rexx
  51.  
  52. INSTALLFILES= configure configure.in install-sh \
  53. Makefile.in config.h.in configure.in chktexrc
  54.  
  55. WEBFILES= chkweb.in deweb.in
  56.  
  57. DOCFILES= ChkTeX.tex ChkTeX.dvi ChkTeX.ps \
  58. ChkTeX.readme ChkTeX.readme.info COPYING COPYING.info \
  59. WB2Argv.readme
  60.  
  61. SOURCEFILES= ChkTeX.c FindErrs.c OpSys.c Resource.c Utility.c \
  62. WB2Argv.c getopt.c getopt1.c ChkTeX.h WB2Argv.h getopt.h 
  63.  
  64. AMIGAFILES= config.h.AMIGA ChkTeX.install ChkTeX.install.info \
  65. SMakefile SCOPTIONS ChkTeX
  66.  
  67. MSDOSFILES=ChkTeX.dsk ChkTeX.exe ChkTeX.prj config.msd
  68.  
  69. TESTFILES= Test.tex input.tex
  70.  
  71. DISTFILES= $(REXXFILES) $(INSTALLFILES) $(DOCFILES) $(SOURCEFILES) \
  72. $(AMIGAFILES) $(MSDOSFILES) $(TESTFILES) $(WEBFILES) 
  73.  
  74.  
  75. .c.o:
  76.     @CC@ @CFLAGS@ @CPPFLAGS@ @DEFS@ $(USRDEFS) $(compileflags) -c $<
  77.  
  78. ###################### MAIN DEPENDENCIES ################################
  79.  
  80. all: chktex ChkTeX.ps 
  81.  
  82. chktex: $(OBJS)
  83.     touch chktex
  84.     rm -r chktex
  85.     @CC@ @LIBS@ @LDFLAGS@ $(compileflags) -o chktex $(OBJS)
  86.  
  87. install: chktex ChkTeX.ps ChkTeX.dvi
  88.     @INSTALL@ chkweb deweb $(bindir)
  89.     @INSTALL_PROGRAM@ chktex $(bindir)
  90.     @INSTALL_DATA@ chktexrc $(datadir)/chktexrc
  91.  
  92. clean:
  93.     rm -r *.o *.dvi *.ps *.aux *.log *.tar.gz *.lha *.cache *.status \
  94. chktex deweb chkweb config.h
  95.  
  96. dist: $(DISTFILES)
  97.     touch chktex chktex.lha chktex.tar.gz
  98.     rm -r chktex chktex.lha chktex.tar.gz
  99.     mkdir chktex
  100.     cp $(DISTFILES) ChkTeX chktex
  101.     mkdir chktex/exec
  102.     cp exec/* chktex/exec/
  103.     lha a chktex.lha chktex
  104.     tar cf chktex.tar chktex
  105.     gzip chktex.tar
  106.     rm -r chktex
  107.  
  108. ###################### INDIVIDUAL DEPENDENCIES ##########################
  109.  
  110. configure: configure.in
  111.     autoconf
  112.  
  113. ChkTeX.dvi: ChkTeX.tex
  114.     @LATEX@ ChkTeX.tex
  115.  
  116. ChkTeX.ps: ChkTeX.dvi
  117.     @DVIPS@ -o ChkTeX.ps ChkTeX.dvi
  118.  
  119.  
  120. ChkTeX: ChkTeX.c
  121.     @echo
  122.  
  123. ChkTeX.o: ChkTeX.c ChkTeX.h exec/types.h getopt.h Makefile
  124.  
  125. FindErrs.o: FindErrs.c ChkTeX.h exec/types.h getopt.h Makefile
  126.  
  127. getopt.o: getopt.c  getopt.h Makefile
  128.  
  129. getopt1.o: getopt1.c  getopt.h Makefile
  130.  
  131. OpSys.o: OpSys.c ChkTeX.h exec/types.h getopt.h Makefile
  132.  
  133. Resource.o: Resource.c ChkTeX.h exec/types.h getopt.h Makefile
  134.  
  135. Utility.o: Utility.c ChkTeX.h exec/types.h getopt.h Makefile
  136.  
  137. check:
  138.     chktex -h
  139.     chktex Test.tex
  140.     chktex -v2 -t -o tmptmptmp <Test.tex
  141.     chktex -v2 -t -o tmptmptmp Test.tex
  142.     chktex Test.tex -v
  143.     chktex Test.tex -v0
  144.     chktex Test.tex -v1
  145.     chktex Test.tex -v2
  146.     chktex Test.tex -v3
  147.     chktex Test.tex -v4
  148.     chktex -t -v0s::: Test.tex -x
  149.     chktex -p FOO Test.tex
  150.     chktex -t Test.tex
  151.     chktex -o tmptmptmp -o tmptmptmptmp Test.tex
  152.     chktex -l t:faultrc test.tex
  153.     chktex -e30w22n1 Test.tex
  154.     chktex -w33e-n1 Test.tex
  155.     chktex -i
  156.     chktex -v2 -t -o tmptmptmp <Test.tex
  157.     chktex -I Test.tex
  158.     chktex -rd2 Test.tex
  159.     chktex -gd2 Test.tex
  160.     chktex -f "*N\
  161. Between: %b*N\
  162. Column: %c*N\
  163. Lenght: %d*N\
  164. File: %f*N\
  165. %iInverse%I*N\
  166. Kind: %k*N\
  167. Line: %l*N\
  168. Msg: %m*N\
  169. Num: %n*N\
  170. Und: %u*N\
  171. Pre:  %r*N\
  172. Str:  %s*N\
  173. Post: %t*N\
  174. *N\
  175. %k in %f line %l: %m*N\
  176. %r%i%s%I%t*N\
  177. %u*N\
  178. *N" Test.tex
  179.     chktex -o tmptmptmp -r -d2 Test.tex
  180.     chktex -qv0 Test.tex
  181.     chktex -w30 Test.tex
  182.     chktex -g --localrc=.testrc -d2 Test.tex
  183.     cover
  184.